cmake_minimum_required(VERSION 3.27)
project(test1)

set(CMAKE_CXX_STANDARD 17)
# 设置 vcpkg 的工具链文件路径
set(CMAKE_TOOLCHAIN_FILE "F:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake")
# 查找 SQLite 库,注意核对名称
find_package(SQLite3 REQUIRED)

add_executable(test1 main.cpp)
# 链接 SQLite 库,注意核对名称
target_link_libraries(test1 PRIVATE SQLite::SQLite3)


